package robot;

import com.ibm.eNetwork.HOD.common.Environment;  // Get the Environment class
import com.ibm.eNetwork.HOD.customizable.*;      // Access to the API classes
import java.applet.*;                            // Get the Applet class
import java.awt.*;

public class TermTest extends Applet{

    CustomDesktop desktop;

    public void init() {
        super.init();                       // Call init on the super class
        setLayout(new BorderLayout());
        Environment env = new Environment(this);      
        try {
            HODSessionManager sm = new HODSessionManager();
            desktop = sm.createCustomDesktop(env, "http://sisbb.bb.com.br/hod/");
            HODDisplaySession session = desktop.startDisplaySession("SISBB Intranet");
            add(BorderLayout.NORTH, session.getToolbar());
            add(BorderLayout.CENTER, (Component) session.getTerminal());
            validate();
        } catch (Exception e) {
            System.out.println(e);
        }


    } // end init method

//    public static void main(String[] args) {
//        TermTest term = new TermTest();
//        term.a();
//    }
} // end TermTest class 
